<template>
  <view class="search-all" style="margin-top: 10px">
    <view style="font-size: 13px;display: flex;justify-content: space-between;align-items: baseline" @click="clickTitleHandle">
     <view>
       {{ name }}（{{ number }}）
     </view>
      <IconFont name="rect-right"  size="10" ></IconFont>
    </view>
    <view style="margin-top: 10px">
      <slot/>
    </view>
  </view>
</template>
<script setup>

import Shop from "../shop/index.vue";
import {IconFont} from "@nutui/icons-vue";
const emit = defineEmits(['clickTitle'])
const props = defineProps({
  number: {
    type: Number,
    default: 0 // 默认数字
  },
  name: {
    type: String,
    default: 'name' // 默认文本
  }
});

const clickTitleHandle = () => {
  console.log("clickTitleclickTitle")
  emit('clickTitle', props.name);
}
</script>
<style scoped>

</style>